﻿@model TagViewModel
@{
    ViewBag.Title = this.GetTtile("Tag \"" + Model.TagName + "\"");
}
@section head{
    <meta name="Title" content='@ViewBag.Title' />
    <meta name="Keywords" content='@Model.PostList.Items.SelectMany(x => x.PostItem.Tags.Select(y => y.Name)).Distinct().Where(x => !string.IsNullOrWhiteSpace(x)).Stringfy()' />
    <meta name="Description" content='@Config.AboutText.Strip()' />
}
<article><h2>Tag: @Model.TagName</h2></article>
@if (Model.PostList.Items.Count() == 0)
{
    <article>No posts found. This Tag doesn't have any post.</article>
}
@Html.Partial("~/Views/Post/List.cshtml", Model.PostList)
